//
//  BBCollectionViewModel.m
//  BBKit
//
//  Created by apple on 2019/7/1.
//  Copyright © 2019年 baobao. All rights reserved.
//

#import "BBCollectionViewModel.h"

#define BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(methodName, paraType)    BBKIT_SETPRAGRA_API(methodName,paraType, UICollectionView, BBCollectionViewModel*)

@implementation BBCollectionViewModel

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(collectionViewLayout, UICollectionViewLayout *)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(delegate, id<UICollectionViewDelegate>)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(dataSource, id<UICollectionViewDataSource>)

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(allowsSelection, BOOL)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(allowsMultipleSelection, BOOL)

#pragma mark - UIScrollView
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(contentSize, CGSize)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(contentOffset, CGPoint)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(contentInset, UIEdgeInsets)

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(bounces, BOOL)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(alwaysBounceVertical, BOOL)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(alwaysBounceHorizontal, BOOL)

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(pagingEnabled, BOOL)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(scrollEnabled, BOOL)

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(showsHorizontalScrollIndicator, BOOL)
BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(showsVerticalScrollIndicator, BOOL)

BBKIT_SETPRAGRA_UICOLLECTIONVIEW_API(scrollsToTop, BOOL)

@end
